package pl.edu.agh.ki.ewywiadowka.client.dto;

import com.google.gwt.user.client.rpc.IsSerializable;

public class SubjectDTO implements IsSerializable {
	
	public Integer id;
	public String name;
	
	public SubjectDTO(Integer id, String name) {
		super();
		this.id = id;
		this.name = name;
	}
	
	public SubjectDTO() {
	}
	
	public String toString() {
		return name;
	}
	
	public boolean equals(SubjectDTO sdto) {
		return name.equals(sdto.name);
	}
	
}
